const path = require('path')

module.exports = {
    lintOnSave: false,
    // module: {
    //     rules: [
    //         { test: /\.js/, loader: 'babel-loader', exclude: /node_modules/ },
    //         { test: /\.css/, loader: 'css-loader!style-loader' },
    //         { test: /\.(png|jpeg|jpg|ttf|gif)/, loader: 'file-loader' }
    //     ]
    // },
    devServer: {
        proxy: {
            '/api': {
                target: 'http://127.0.0.1:3000',
                pathRewrite: {
                    '^/api': '' // 根据实际情况来自定义
                },
                changeOrigin: true
            }
        },
        // historyApiFallback: true

    }
}